Telegram Group & Telegram Channel
🌲 #newfeature
Changes to security()'s resolution= parameter.

The security() function was recently updated to accommodate an empty string or na as an argument to its resolution= parameter. In both cases, the chart's resolution (timeframe.period) will be used.

This will be handy in conjunction with the new "Same as Symbol" choice which is now part of the recent resolution widget's dropdown, which appears in the script's Inputs when you use:
r = input("D", type = input.resolution)


When users select "Same as Symbol" in the dropdown, the widget returns an empty string. As we had documented here, coders previously had to use special logic to process an empty string, as security() would throw an error if an empty string was used for the resolution. Now, we can forego the special logic and simply write:
r = input("D", type = input.resolution)
c = security(syminfo.tickerid, r, close)


Note that the default value we supply in the input() call must be one of the dropdown's choices (or an empty string for "Same as Symbol), otherwise "Same as Symbol" will be used in its place.



tg-me.com/PineCodersSquawkBox/42
Create:
Last Update:

🌲 #newfeature
Changes to security()'s resolution= parameter.

The security() function was recently updated to accommodate an empty string or na as an argument to its resolution= parameter. In both cases, the chart's resolution (timeframe.period) will be used.

This will be handy in conjunction with the new "Same as Symbol" choice which is now part of the recent resolution widget's dropdown, which appears in the script's Inputs when you use:

r = input("D", type = input.resolution)


When users select "Same as Symbol" in the dropdown, the widget returns an empty string. As we had documented here, coders previously had to use special logic to process an empty string, as security() would throw an error if an empty string was used for the resolution. Now, we can forego the special logic and simply write:
r = input("D", type = input.resolution)
c = security(syminfo.tickerid, r, close)


Note that the default value we supply in the input() call must be one of the dropdown's choices (or an empty string for "Same as Symbol), otherwise "Same as Symbol" will be used in its place.

BY PineCoders Squawk Box




Share with your friend now:
tg-me.com/PineCodersSquawkBox/42

View MORE
Open in Telegram


PineCoders Squawk Box Telegram | DID YOU KNOW?

Date: |

Telegram is riding high, adding tens of million of users this year. Now the bill is coming due.Telegram is one of the few significant social-media challengers to Facebook Inc., FB -1.90% on a trajectory toward one billion users active each month by the end of 2022, up from roughly 550 million today.

Telegram today rolling out an update which brings with it several new features.The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. The update also adds interactive emoji. When you send one of the select animated emoji in chat, you can now tap on it to initiate a full screen animation. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations. This is then visible to you or anyone else who's also present in chat at the moment. The animations are also accompanied by vibrations.

PineCoders Squawk Box from es


Telegram PineCoders Squawk Box
FROM USA